package com.zlt.dao;

import com.zlt.entity.Company;
import com.zlt.entity.User;
import com.zlt.vo.CompanyVO;
import com.zlt.vo.Pager;
import com.zlt.vo.UserVo;

import java.util.List;
import java.util.Map;

public interface CompanyDao {
    Company selectCompanyInfoByUid(String uid,Integer state1,Integer state2);

    int insertCompany(Company company);

    List<Map<String, Object>> selectCompanyByUid(String uid, Integer state);

    int insertCompany(String uid, Integer cid, Integer state);

    Long selectCountUserHr(String uid);

    List<User> selectUserHrByCid(Pager<UserVo> pager, Integer cid, Integer state);

    Long selectReviewedHrCount(String uid);

    List<User> selectUserHr(Pager<UserVo> pager,Integer cid, Integer state);

    int updateUserCompanyState(String uid, Integer state);

    Company selectCompanyByCname(String cname, Integer state);

    Company selectCompanyInfoByUid(String uid);

    Long selectCount(String uid);

    List<Company> selectCompanyInfoByUid(Pager<CompanyVO> pager, String uid);

    int insertUserCompany(String uid, Integer cid, Integer state);

    Company selectCompanyInfoByUid(String uid, Integer state);
    Company selectCompanyByCid(Integer cid);
}
